package com.captjack.dubbo.provider.hello;

import com.alibaba.dubbo.config.annotation.Service;
import com.captjack.dubbo.api.hello.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author Capt Jack
 * @date 2018/7/2
 */
@Slf4j
@Service
@Component
public class HelloServiceImpl implements HelloService {

    /**
     *
     */
    private static final String NODE_ID = UUID.randomUUID().toString();

    @Override
    public String hello(String param) {
        System.out.println(param);
        return NODE_ID + "===" + UUID.randomUUID().toString();
    }

}
